package com.example.utils;

import com.example.framwork.code.CodeConst;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class WebUtil {
    public static String renderStr(HttpServletResponse response,String szContext){
     try{
         response.setStatus(HttpServletResponse.SC_OK);
         response.setContentType("application/json");
         response.setCharacterEncoding("utf-8");
         response.getWriter().print(szContext);

     }
     catch (IOException e)
     {
         e.printStackTrace();
     }
    return null;

    }
}
